<table class="table-grid">
    <thead>
        <tr>
            <th class="col-idx"><a href="#" class="btn-arrowstop lnk-multiple" onclick="">&nbsp;</a></th>
    <if condition="$isSuperAdmin">
        <th>租户ID</th>
    </if>
    <th>商品名称</th>
    <th>商品条码</th>
    <th>销售价格</th>
    <th>商品库存</th>
    <th>预警库存</th>
    <th>商品分类</th>
    <th>状态</th>
    <th>创建时间</th>
    <th>操作</th>
</tr>
</thead>
<tbody>
<foreach name="list" item="vo">
    <tr data-key="{$vo.id}">
        <td>{$key}</td>
    <if condition="$isSuperAdmin">
        <td>{$vo.siteID}</td>
    </if>
    <td>{$vo.product_name}</td>
    <td>{$vo.barcode}</td>
    <td>{$vo.price}</td>
    <td>{$vo.stock}</td>
    <td>{$vo.warning_stock}</td>
    <td>{$vo.catalog_name}</td>
    <td>{$vo.state|sofn_get_state_text='PRODUCT-SALE-STATE',###}</td>
    <td>{$vo.createdTime}</td>
    <td class="no-padding">
    <if condition="$upr['product_edit']">
        <a href="{:U('Product/product_edit','id='.$vo['id'])}" class="btn-edit lnk-edit">编辑</a>
    </if>
    <if condition="$upr['盘点调仓']">
        <a href="{:U('Product/inventory_edit','id='.$vo['id'])}" class="btn-edit lnk-edit">盘点</a>
    </if>
    <a href="{:U('Product/product_log_list','id='.$vo['id'])}" class="btn-edit lnk-edit">日志</a>
    <if condition="$upr['product_delete']">
        <a href="{:U('Product/product_delete','id='.$vo['id'])}" class="btn-minus lnk-confirm">删除</a>
    </if>
    </td></tr>
</foreach>
</tbody>
</table>
{$pager}